<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./index.js"></script>


    <script>
        const promiseAll = [
            myaxios({
                method: "GET",
                url: "http://ajax-base-api-t.itheima.net/api/getboks",
            }),
            myaxios({
                method: "GET",
                url: "http://ajax-base-api-t.itheima.net/api/getbooks",
            }),
             myaxios({
                method: "GET",
                url: "http://ajax-base-api-t.itheima.net/api/getbooks",
            })
        ]
        Promise.all(promiseAll)
            .then(res => {
                document.querySelector('body').innerHTML = "获取图书成功"
            }).catch((err)=>{
                console.log(err);
                document.querySelector('body').innerHTML = err

            })
    </script>
</body>

</html>